import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/pages/Home.vue'
import ToPic from '@/components/pages/Special';
import Class from '@/components/pages/Class';
import Cart from '@/components/pages/cart';
import My from '@/components/pages/My'

Vue.use(Router)

module.exports = new Router({
  routes: [
    {path: '/', name: 'home', component: Home},
    {path:'/home',component:Home},
    {path:'/topic',component:ToPic},
    {path:'/class',component:Class},
    {path:'/cart',component:Cart},
    {path:'/my',component:My}
  ]
})
